package com.xing.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.common.utils.PageUtils;
import com.xing.gulimall.product.entity.AttrGroupEntity;
import com.xing.gulimall.product.vo.AttrGroupRelationVo;
import com.xing.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author xingfuhao
 * @email 2030280200@qq.com
 * @date 2022-08-31 10:41:37
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 用attrGroup的同一个分类的其他组，在中间表中没有与attrGroup关联的数据
     * @param params
     * @param attrGroupId
     * @return
     */
    PageUtils NoAttrRelation(Map<String, Object> params, Long attrGroupId);

    void saveRelation(AttrGroupRelationVo... attrGroupRelationVos);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

